export default {
  mounted(el: HTMLElement) {
    const input = el.querySelector("input");
    input?.addEventListener("focus", () => {
      if (input.value.length > 0) {
        // 选中所有文本
        input.select();
      }
    });
  },
};
